home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / lu62 / port / hscb.h < prev    next >
C/C++ Source or Header  |  1996-07-10  |  6KB  |  90 lines

  1. /* k 8001 19.07.90 */
  2. /* k 0055 17/09/90 */
  3. /* k 1021 17/01/91 */   /* hssesno short->char        */
  4. /* k 0115    02/02/91    */
  5. /* k 1075    24/01/92    *//* my node ID               */
  6. /*******************************************************
  7.  *           HSCB - HALF-SESSION CONTROL BLOCK         *
  8.  *******************************************************/
  9. /*  k  1002   08.07.90      */
  10. /*  k  1066   07/12/91      */  /* new struct hsnetad,hsmynet   */
  11. struct hscb {
  12.  struct hscb *next;         /* pointer to next hscb             */
  13.  struct nau *naup;          /* pointer to nau                   */
  14.  struct dlctb *dp;          /* pointer to dlc table             */
  15.  char     tsprof;           /* TS profile                       */
  16.  char     fmprof;           /* FM profile                       */
  17.  char     psprof;           /* presentation service profile     */
  18.  char     priprot;          /* FM usage PLU protocols           */
  19.  char     secprot;          /* FM usage SLU protocols           */
  20.  short unsigned comprot;    /* FM usage common protocols        */
  21.  char     sspac;            /* SLU send pacing count    (TS)    */
  22.  char     srpac;            /* SLU receive pacing count (TS)    */
  23.  char     smaxru;           /* SLU maximum send RU size (TS)    */
  24.  char     pmaxru;           /* PLU maximum send RU size (TS)    */
  25.  char     cspac;            /* common send pacing count (TS)    */
  26.  char     prpac;            /* PLU receive pacing count (TS)    */
  27.  char hsprisnd;             /* primary send                     */
  28.  char hstypses;             /* session flag byte:               *
  29.                              * HSHASESS                         */
  30.  char hspacn;               /* session pacing count             */
  31.  char hsfsmpar;             /* half-session state indicators:   *
  32.                              * HSSDTS, FSMIMM, PARPEND          */
  33.   union {                                          /* 1012 */
  34.    struct {                                        /* 1012 */
  35.     short hsnetad;           /* destination address field  1066*/
  36.     short hsmynet;           /* origin address field       1066*/
  37.       } lan;                                /* 1066 */
  38.    struct {                                 /* @1066 */
  39.      char hsdnode;                          /* @1066 */
  40.      char hsdnetad;                         /* @1066 */
  41.      char hsonode;                          /* @1066 */
  42.      char hsomynet;                         /* @1066 */
  43.       } rout;                               /* @1066 */
  44.    } dest;                                  /* 1066 */
  45.  char hslunam[8];           /* lu name                          */
  46.  char hsnodnam[8];          /* lu node name                     */
  47.  unsigned short hssqscnt;   /* sequence send count        @0115 */
  48.  unsigned short hssqrcnt;   /* sequence receive count     @0115 */
  49.  char hsfsssrc;             /* half-session state indicators    *
  50.                              * HSACT - session active;          *
  51.                              * HSPACT - session pending active; *
  52.                              * HSPR -                         ; *
  53.                              * HSPRRB -                       ; *
  54.                              * HSPRRU -                       ; */
  55.  char hsfssst0;             /* half-session state indicators    *
  56.                              * HSPSTSN - pending STSN;          *
  57.                              * HSPRQR  - pending RQR;           *
  58.                              * HSCTLIMM -                       */
  59.  unsigned char hstype;      /* session type:               @0115*
  60.                              * TYPLULU                          */
  61.  char hscbqpac;             /* hscb pacing queue                */
  62.  char hscflg1;              /* hscb flag 1                      */
  63.  char hssesno;              /* sequence number  1002 1021       */
  64.  char hs2scrn;              /* vt screen number                 */
  65.  struct hscb2 *hp2;         /* pointer to hscb extension        */
  66.  struct rqb *ruqueue;        /* receive queue            */
  67.  unsigned char mynode;      /* my node ID                @1075  */
  68.   };
  69.  
  70. #define hsfsmimm   hsfsmpar /* define an alias                  */
  71. #define hsfsmdt    hsfsmpar /* define an alias                  */
  72. #define hsfsmimm   hsfsmpar /* define an alias                  */
  73. #define HSPACGOT   0x01     /* pacing response got indicator    */
  74. #define HSSEC      0x20     /* secondary half-session           */
  75. #define PARPEND    0x04     /* pacing response pending flag     */
  76. #define FSMIMM     0x08     /* fsm_cntl_immed_exp               */
  77. #define HSSDTS     0x80     /* SDT supported flag               */
  78. #define HSHASESS   0x20     /* activate in progress flag        */
  79. #define HSACT      0x09     /* session active indicators        */
  80. #define HSPACT     0x08     /* session pending active indicator */
  81. #define HSPR       0x0A     /*                                  */
  82. #define HSPRRB     0x0B     /*                                  */
  83. #define HSPRRU     0x0C     /*                                  */
  84. #define HSCTLIMM   0x01     /*                                  */
  85. #define HSPSTSN    0x02     /* STSN pending indicator           */
  86. #define HSPRQR     0x04     /* RQR pending indicator            */
  87. #define HSPSPCNT   63       /* primary session pacing count     */
  88. #define HSSEPCNT   63       /* secondary session pacing count   */
  89. #define TYPLULU     3       /* lu-lu session type               */
  90.